package services

import (
	"system/connect"
	"system/models"
)

func GetAllCourses(coursesParam map[string]interface{}) (error, []models.Course, int64) {
	err, coursesData, total := connect.GetAllCourses(coursesParam)
	return err, coursesData, total
}

func DelCourses(id string) error {
	err := connect.DelCourses(id)
	return err
}

func UpdateCourses(courses models.Course) error {
	err := connect.UpdateCourses(courses)
	return err
}

func AddCourses(courses models.Course) error {
	err := connect.AddCourses(courses)
	return err
}